package edu.pw.treegrid.server.web.converters;

import xalan.smartgwt.record.BeanToRecordConverter;
import xalan.smartgwt.record.Record;
import edu.pw.treegrid.server.web.Pair;
import edu.pw.treegrid.shared.ReportColumnDescription;

public class PairConverter implements BeanToRecordConverter<Pair> {
	@Override
    public void convert(Record record, Pair bean) {
            record.addParam(ReportColumnDescription.NAME, bean.first);
            record.addParam(ReportColumnDescription.COLUMN, bean.second);
    }
}
